import { Post,Controller,Get } from '@nestjs/common';
import { TestService } from '../curd/test.services';
import { Test } from '../models/test';

@Controller('test')
export class TestController {
  constructor(private usersService: TestService) {}

  @Get('all')
  async getAll(): Promise<Test[]> {
    console.log('22')
    return this.usersService.findAll();
  }
}